import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.security.asset.d.ts',
  content: "/*\n * Copyright (c) 2024 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit AssetStoreKit\n */\n/**\n * This module provides the capabilities for life cycle management of sensitive user data (Asset) such as passwords\n * and tokens, including adding, removing, updating, and querying.\n *\n * @namespace asset\n * @syscap SystemCapability.Security.Asset\n * @since 11\n */\n/**\n * This module provides the capabilities for life cycle management of sensitive user data (Asset) such as passwords\n * and tokens, including adding, removing, updating, and querying.\n *\n * @namespace asset\n * @syscap SystemCapability.Security.Asset\n * @atomicservice\n * @since 14\n */\ndeclare namespace asset {\n    /**\n     * Add an Asset.\n     * Permission ohos.permission.STORE_PERSISTENT_DATA is required when the Asset needs to be stored persistently\n     *     by setting {@link Tag.IS_PERSISTENT} tag.\n     *\n     * @param { AssetMap } attributes - a map object containing attributes of the Asset to be added.\n     * @returns { Promise<void> } the promise object returned by the function.\n     * @throws { BusinessError } 201 - The caller doesn't have the permission.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     *     3. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000003 - The asset already exists.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000014 - The file operation failed.\n     * @throws { BusinessError } 24000015 - Getting the system time failed.\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * Add an Asset.\n     * Permission ohos.permission.STORE_PERSISTENT_DATA is required when the Asset needs to be stored persistently\n     *     by setting {@link Tag.IS_PERSISTENT} tag.\n     *\n     * @param { AssetMap } attributes - a map object containing attributes of the Asset to be added.\n     * @returns { Promise<void> } the promise object returned by the function.\n     * @throws { BusinessError } 201 - The caller doesn't have the permission.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     *     3. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000003 - The asset already exists.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000014 - The file operation failed.\n     * @throws { BusinessError } 24000015 - Getting the system time failed.\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    function add(attributes: AssetMap): Promise<void>;\n    /**\n     * Add an Asset.\n     * Permission ohos.permission.STORE_PERSISTENT_DATA is required when the Asset needs to be stored persistently\n     *     by setting {@link Tag.IS_PERSISTENT} tag.\n     *\n     * @param { AssetMap } attributes - a map object containing attributes of the Asset to be added.\n     * @throws { BusinessError } 201 - The caller doesn't have the permission.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     *     3. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000003 - The asset already exists.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000014 - The file operation failed.\n     * @throws { BusinessError } 24000015 - Getting the system time failed.\n     * @syscap SystemCapability.Security.Asset\n     * @since 12\n     */\n    /**\n     * Add an Asset.\n     * Permission ohos.permission.STORE_PERSISTENT_DATA is required when the Asset needs to be stored persistently\n     *     by setting {@link Tag.IS_PERSISTENT} tag.\n     *\n     * @param { AssetMap } attributes - a map object containing attributes of the Asset to be added.\n     * @throws { BusinessError } 201 - The caller doesn't have the permission.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     *     3. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000003 - The asset already exists.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000014 - The file operation failed.\n     * @throws { BusinessError } 24000015 - Getting the system time failed.\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    function addSync(attributes: AssetMap): void;\n    /**\n     * Remove one or more Assets that match a search query.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be removed.\n     * @returns { Promise<void> } the promise object returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Incorrect parameter types.\n     *     2. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000015 - Getting the system time failed.\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * Remove one or more Assets that match a search query.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be removed.\n     * @returns { Promise<void> } the promise object returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Incorrect parameter types.\n     *     2. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000015 - Getting the system time failed.\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    function remove(query: AssetMap): Promise<void>;\n    /**\n     * Remove one or more Assets that match a search query.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be removed.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Incorrect parameter types.\n     *     2. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000015 - Getting the system time failed.\n     * @syscap SystemCapability.Security.Asset\n     * @since 12\n     */\n    /**\n     * Remove one or more Assets that match a search query.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be removed.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Incorrect parameter types.\n     *     2. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000015 - Getting the system time failed.\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    function removeSync(query: AssetMap): void;\n    /**\n     * Update an Asset that matches a search query.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be updated.\n     * @param { AssetMap } attributesToUpdate - a map object containing attributes with new values.\n     * @returns { Promise<void> } the promise object returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     *     3. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000015 - Getting the system time failed.\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * Update an Asset that matches a search query.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be updated.\n     * @param { AssetMap } attributesToUpdate - a map object containing attributes with new values.\n     * @returns { Promise<void> } the promise object returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     *     3. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000015 - Getting the system time failed.\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    function update(query: AssetMap, attributesToUpdate: AssetMap): Promise<void>;\n    /**\n     * Update an Asset that matches a search query.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be updated.\n     * @param { AssetMap } attributesToUpdate - a map object containing attributes with new values.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     *     3. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000015 - Getting the system time failed.\n     * @syscap SystemCapability.Security.Asset\n     * @since 12\n     */\n    /**\n     * Update an Asset that matches a search query.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be updated.\n     * @param { AssetMap } attributesToUpdate - a map object containing attributes with new values.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     *     3. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000015 - Getting the system time failed.\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    function updateSync(query: AssetMap, attributesToUpdate: AssetMap): void;\n    /**\n     * Preprocessing (e.g. get challenge) for querying one or more Assets that require user authentication.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be queried.\n     * @returns { Promise<Uint8Array> } the promise object returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Incorrect parameter types.\n     *     2. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000016 - The cache exceeds the limit.\n     * @throws { BusinessError } 24000017 - The capability is not supported.\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * Preprocessing (e.g. get challenge) for querying one or more Assets that require user authentication.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be queried.\n     * @returns { Promise<Uint8Array> } the promise object returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Incorrect parameter types.\n     *     2. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000016 - The cache exceeds the limit.\n     * @throws { BusinessError } 24000017 - The capability is not supported.\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    function preQuery(query: AssetMap): Promise<Uint8Array>;\n    /**\n     * Preprocessing (e.g. get challenge) for querying one or more Assets that require user authentication.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be queried.\n     * @returns { Uint8Array } the challenge value to be used when {@link querySync} is called.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Incorrect parameter types.\n     *     2. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000016 - The cache exceeds the limit.\n     * @throws { BusinessError } 24000017 - The capability is not supported.\n     * @syscap SystemCapability.Security.Asset\n     * @since 12\n     */\n    /**\n     * Preprocessing (e.g. get challenge) for querying one or more Assets that require user authentication.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be queried.\n     * @returns { Uint8Array } the challenge value to be used when {@link querySync} is called.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Incorrect parameter types.\n     *     2. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000016 - The cache exceeds the limit.\n     * @throws { BusinessError } 24000017 - The capability is not supported.\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    function preQuerySync(query: AssetMap): Uint8Array;\n    /**\n     * Query one or more Assets that match a search query.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be queried.\n     * @returns { Promise<Array<AssetMap>> } the promise object returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Incorrect parameter types.\n     *     2. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000004 - Access denied.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000017 - The capability is not supported.\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * Query one or more Assets that match a search query.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be queried.\n     * @returns { Promise<Array<AssetMap>> } the promise object returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Incorrect parameter types.\n     *     2. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000004 - Access denied.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000017 - The capability is not supported.\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    function query(query: AssetMap): Promise<Array<AssetMap>>;\n    /**\n     * Query one or more Assets that match a search query.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be queried.\n     * @returns { Array<AssetMap> } the query result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Incorrect parameter types.\n     *     2. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000004 - Access denied.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000017 - The capability is not supported.\n     * @syscap SystemCapability.Security.Asset\n     * @since 12\n     */\n    /**\n     * Query one or more Assets that match a search query.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be queried.\n     * @returns { Array<AssetMap> } the query result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Incorrect parameter types.\n     *     2. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000002 - The asset is not found.\n     * @throws { BusinessError } 24000004 - Access denied.\n     * @throws { BusinessError } 24000005 - The screen lock status does not match.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000007 - The asset is corrupted.\n     * @throws { BusinessError } 24000008 - The database operation failed.\n     * @throws { BusinessError } 24000009 - The cryptography operation failed.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000017 - The capability is not supported.\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    function querySync(query: AssetMap): Array<AssetMap>;\n    /**\n     * Post-processing (e.g. release cached resource) for querying multiple Assets that require user authentication.\n     *\n     * @param { AssetMap } handle - a map object containing the handle returned by {@link preQuery}.\n     * @returns { Promise<void> } the promise object returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     *     3. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * Post-processing (e.g. release cached resource) for querying multiple Assets that require user authentication.\n     *\n     * @param { AssetMap } handle - a map object containing the handle returned by {@link preQuery}.\n     * @returns { Promise<void> } the promise object returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     *     3. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    function postQuery(handle: AssetMap): Promise<void>;\n    /**\n     * Post-processing (e.g. release cached resource) for querying multiple Assets that require user authentication.\n     *\n     * @param { AssetMap } handle - a map object containing the handle returned by {@link preQuerySync}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     *     3. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @syscap SystemCapability.Security.Asset\n     * @since 12\n     */\n    /**\n     * Post-processing (e.g. release cached resource) for querying multiple Assets that require user authentication.\n     *\n     * @param { AssetMap } handle - a map object containing the handle returned by {@link preQuerySync}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     *     1. Mandatory parameters are left unspecified.\n     *     2. Incorrect parameter types.\n     *     3. Parameter verification failed.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    function postQuerySync(handle: AssetMap): void;\n    /**\n     * The ASSET service provides the ability to synchronize Assets between devices.\n     * This function is used to query the synchronization result.\n     *\n     * @param { AssetMap } query - a map object containing attributes of the Asset to be synchronized.\n     * @returns { Promise<SyncResult> } a promise object that can be resolved into the result of asset synchronization.\n     * @throws { BusinessError } 24000001 - The ASSET service is unavailable.\n     * @throws { BusinessError } 24000006 - Insufficient memory.\n     * @throws { BusinessError } 24000010 - IPC failed.\n     * @throws { BusinessError } 24000011 - Calling the Bundle Manager service failed.\n     * @throws { BusinessError } 24000012 - Calling the OS Account service failed.\n     * @throws { BusinessError } 24000013 - Calling the Access Token service failed.\n     * @throws { BusinessError } 24000014 - The file operation failed.\n     * @throws { BusinessError } 24000018 - Parameter verification failed.\n     * @syscap SystemCapability.Security.Asset\n     * @since 20\n     */\n    function querySyncResult(query: AssetMap): Promise<SyncResult>;\n    /**\n     * A Map type containing tag-value pairs that describe the attributes of an Asset.\n     *\n     * @typedef { Map<Tag, Value> }\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * A Map type containing tag-value pairs that describe the attributes of an Asset.\n     *\n     * @typedef { Map<Tag, Value> }\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    type AssetMap = Map<Tag, Value>;\n    /**\n     * A type that indicates the secret or attribute value of an Asset tag.\n     *\n     * @typedef { boolean | number | Uint8Array }\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * A type that indicates the secret or attribute value of an Asset tag.\n     *\n     * @typedef { boolean | number | Uint8Array }\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    type Value = boolean | number | Uint8Array;\n    /**\n     * An enum type indicates when the Asset is accessible.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * An enum type indicates when the Asset is accessible.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    enum Accessibility {\n        /**\n         * The secret value in the Asset can only be accessed after the device is powered on.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The secret value in the Asset can only be accessed after the device is powered on.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DEVICE_POWERED_ON = 0,\n        /**\n         * The secret value in the Asset can only be accessed after the device is first unlocked.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The secret value in the Asset can only be accessed after the device is first unlocked.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DEVICE_FIRST_UNLOCKED = 1,\n        /**\n         * The secret value in the Asset can only be accessed while the device is unlocked.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The secret value in the Asset can only be accessed while the device is unlocked.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DEVICE_UNLOCKED = 2\n    }\n    /**\n     * An enum type indicates the user authentication type for Asset access control.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * An enum type indicates the user authentication type for Asset access control.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    enum AuthType {\n        /**\n         * The access to an Asset doesn't require user authentication.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The access to an Asset doesn't require user authentication.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        NONE = 0x00,\n        /**\n         * The access to an Asset requires user authentication using either PIN/pattern/password or biometric traits.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The access to an Asset requires user authentication using either PIN/pattern/password or biometric traits.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        ANY = 0xFF\n    }\n    /**\n     * An enum type indicates the type of Asset synchronization.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * An enum type indicates the type of Asset synchronization.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    enum SyncType {\n        /**\n         * An Asset with this attribute value is never allowed to be transferred out.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * An Asset with this attribute value is never allowed to be transferred out.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        NEVER = 0,\n        /**\n         * An Asset with this attribute value can only be restored to the device from which it was transferred out.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * An Asset with this attribute value can only be restored to the device from which it was transferred out.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        THIS_DEVICE = 1 << 0,\n        /**\n         * An Asset with this attribute value can only be transferred out to a trusted device (user authorized).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * An Asset with this attribute value can only be transferred out to a trusted device (user authorized).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        TRUSTED_DEVICE = 1 << 1,\n        /**\n         * An Asset with this attribute value can only be transferred out to devices logged in with trusted accounts.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 12\n         */\n        /**\n         * An Asset with this attribute value can only be transferred out to devices logged in with trusted accounts.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        TRUSTED_ACCOUNT = 1 << 2\n    }\n    /**\n     * An enum type indicates the type of Asset encapsulation.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @since 18\n     */\n    enum WrapType {\n        /**\n         * An Asset with this attribute value is never allowed to be wrapped up.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 18\n         */\n        NEVER = 0,\n        /**\n         * An Asset with this attribute value can only be wrapped or unwrapped on devices logged in with trusted accounts.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 18\n         */\n        TRUSTED_ACCOUNT = 1\n    }\n    /**\n     * An enum type indicates the strategy for conflict resolution when handling duplicated Asset alias.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * An enum type indicates the strategy for conflict resolution when handling duplicated Asset alias.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    enum ConflictResolution {\n        /**\n         * Directly overwrite an Asset with duplicated alias when a conflict is detected.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * Directly overwrite an Asset with duplicated alias when a conflict is detected.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        OVERWRITE = 0,\n        /**\n         * Throw an error so that the caller can take measures when a conflict is detected.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * Throw an error so that the caller can take measures when a conflict is detected.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        THROW_ERROR = 1\n    }\n    /**\n     * An enum type indicates the return type of the queried Asset.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * An enum type indicates the return type of the queried Asset.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    enum ReturnType {\n        /**\n         * Specify that the return data should contain both secret value and attributes.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * Specify that the return data should contain both secret value and attributes.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        ALL = 0,\n        /**\n         * Specify that the return data contains only attributes.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * Specify that the return data contains only attributes.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        ATTRIBUTES = 1\n    }\n    /**\n     * An enum type indicates the additional action to be performed during operation.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @since 12\n     */\n    enum OperationType {\n        /**\n         * Synchronization is required during operation.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 12\n         */\n        NEED_SYNC = 0,\n        /**\n         * Logout is required during operation.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 12\n         */\n        NEED_LOGOUT = 1\n    }\n    /**\n     * Interface of synchronization result.\n     *\n     * @typedef SyncResult\n     * @syscap SystemCapability.Security.Asset\n     * @since 20\n     */\n    interface SyncResult {\n        /**\n         * The result code of synchronization.\n         *\n         * @type { number }\n         * @readonly\n         * @syscap SystemCapability.Security.Asset\n         * @since 20\n         */\n        readonly resultCode: number;\n        /**\n         * The total count of synchronized Assets.\n         *\n         * @type { ?number }\n         * @readonly\n         * @syscap SystemCapability.Security.Asset\n         * @since 20\n         */\n        readonly totalCount?: number;\n        /**\n         * The count of Assets that fail to synchronize.\n         *\n         * @type { ?number }\n         * @readonly\n         * @syscap SystemCapability.Security.Asset\n         * @since 20\n         */\n        readonly failedCount?: number;\n    }\n    /**\n     * An enum type containing the data type definitions for Asset attribute value.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * An enum type containing the data type definitions for Asset attribute value.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    enum TagType {\n        /**\n         * The data type of Asset attribute value is bool.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The data type of Asset attribute value is bool.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        BOOL = 0x01 << 28,\n        /**\n         * The data type of Asset attribute value is uint32.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The data type of Asset attribute value is uint32.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        NUMBER = 0x02 << 28,\n        /**\n         * The data type of Asset attribute value is byte array.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The data type of Asset attribute value is byte array.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        BYTES = 0x03 << 28\n    }\n    /**\n     * An enum type containing the Asset attribute tags.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * An enum type containing the Asset attribute tags.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    enum Tag {\n        /**\n         * A tag whose value is a byte array indicating the sensitive user data such as passwords and tokens.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a byte array indicating the sensitive user data such as passwords and tokens.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        SECRET = TagType.BYTES | 0x01,\n        /**\n         * A tag whose value is a byte array identifying an Asset.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a byte array identifying an Asset.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        ALIAS = TagType.BYTES | 0x02,\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating when the Asset can be accessed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating when the Asset can be accessed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        ACCESSIBILITY = TagType.NUMBER | 0x03,\n        /**\n         * A tag whose value is a bool indicating whether a screen lock password is required for the device.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a bool indicating whether a screen lock password is required for the device.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        REQUIRE_PASSWORD_SET = TagType.BOOL | 0x04,\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the user authentication type for Asset access control.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the user authentication type for Asset access control.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        AUTH_TYPE = TagType.NUMBER | 0x05,\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the validity period in seconds of user authentication.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the validity period in seconds of user authentication.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        AUTH_VALIDITY_PERIOD = TagType.NUMBER | 0x06,\n        /**\n         * A tag whose value is a byte array indicating the authentication challenge for anti-replay protection.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a byte array indicating the authentication challenge for anti-replay protection.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        AUTH_CHALLENGE = TagType.BYTES | 0x07,\n        /**\n         * A tag whose value is a byte array indicating the authentication token after a user is verified.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a byte array indicating the authentication token after a user is verified.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        AUTH_TOKEN = TagType.BYTES | 0x08,\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the type of Asset synchronization.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the type of Asset synchronization.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        SYNC_TYPE = TagType.NUMBER | 0x10,\n        /**\n         * A tag whose value is a bool indicating whether Asset is stored persistently.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        IS_PERSISTENT = TagType.BOOL | 0x11,\n        /**\n         * A tag whose value is a byte array indicating the first user-defined Asset data label (not allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a byte array indicating the first user-defined Asset data label (not allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATA_LABEL_CRITICAL_1 = TagType.BYTES | 0x20,\n        /**\n         * A tag whose value is a byte array indicating the second user-defined Asset data label (not allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a byte array indicating the second user-defined Asset data label (not allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATA_LABEL_CRITICAL_2 = TagType.BYTES | 0x21,\n        /**\n         * A tag whose value is a byte array indicating the third user-defined Asset data label (not allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a byte array indicating the third user-defined Asset data label (not allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATA_LABEL_CRITICAL_3 = TagType.BYTES | 0x22,\n        /**\n         * A tag whose value is a byte array indicating the fourth user-defined Asset data label (not allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a byte array indicating the fourth user-defined Asset data label (not allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATA_LABEL_CRITICAL_4 = TagType.BYTES | 0x23,\n        /**\n         * A tag whose value is a byte array indicating the first user-defined Asset data label (allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a byte array indicating the first user-defined Asset data label (allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATA_LABEL_NORMAL_1 = TagType.BYTES | 0x30,\n        /**\n         * A tag whose value is a byte array indicating the second user-defined Asset data label (allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a byte array indicating the second user-defined Asset data label (allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATA_LABEL_NORMAL_2 = TagType.BYTES | 0x31,\n        /**\n         * A tag whose value is a byte array indicating the third user-defined Asset data label (allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a byte array indicating the third user-defined Asset data label (allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATA_LABEL_NORMAL_3 = TagType.BYTES | 0x32,\n        /**\n         * A tag whose value is a byte array indicating the fourth user-defined Asset data label (allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a byte array indicating the fourth user-defined Asset data label (allow to update).\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATA_LABEL_NORMAL_4 = TagType.BYTES | 0x33,\n        /**\n         * A local tag whose value is a byte array indicating the first user-defined Asset data label (allow to update).\n         * The information of a local tag will not be synchronized.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 12\n         */\n        /**\n         * A local tag whose value is a byte array indicating the first user-defined Asset data label (allow to update).\n         * The information of a local tag will not be synchronized.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATA_LABEL_NORMAL_LOCAL_1 = TagType.BYTES | 0x34,\n        /**\n         * A local tag whose value is a byte array indicating the second user-defined Asset data label (allow to update).\n         * The information of a local tag will not be synchronized.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 12\n         */\n        /**\n         * A local tag whose value is a byte array indicating the second user-defined Asset data label (allow to update).\n         * The information of a local tag will not be synchronized.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATA_LABEL_NORMAL_LOCAL_2 = TagType.BYTES | 0x35,\n        /**\n         * A local tag whose value is a byte array indicating the third user-defined Asset data label (allow to update).\n         * The information of a local tag will not be synchronized.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 12\n         */\n        /**\n         * A local tag whose value is a byte array indicating the third user-defined Asset data label (allow to update).\n         * The information of a local tag will not be synchronized.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATA_LABEL_NORMAL_LOCAL_3 = TagType.BYTES | 0x36,\n        /**\n         * A local tag whose value is a byte array indicating the fourth user-defined Asset data label (allow to update).\n         * The information of a local tag will not be synchronized.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 12\n         */\n        /**\n         * A local tag whose value is a byte array indicating the fourth user-defined Asset data label (allow to update).\n         * The information of a local tag will not be synchronized.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATA_LABEL_NORMAL_LOCAL_4 = TagType.BYTES | 0x37,\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the return type of the queried Asset.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the return type of the queried Asset.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        RETURN_TYPE = TagType.NUMBER | 0x40,\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the maximum number of returned Assets in one query.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the maximum number of returned Assets in one query.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        RETURN_LIMIT = TagType.NUMBER | 0x41,\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the offset of return data in batch query.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the offset of return data in batch query.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        RETURN_OFFSET = TagType.NUMBER | 0x42,\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating how the query results are sorted.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating how the query results are sorted.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        RETURN_ORDERED_BY = TagType.NUMBER | 0x43,\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the strategy for resolving Asset conflicts.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the strategy for resolving Asset conflicts.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        CONFLICT_RESOLUTION = TagType.NUMBER | 0x44,\n        /**\n         * A tag whose value is a byte array indicating the update time of an Asset.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 12\n         */\n        /**\n         * A tag whose value is a byte array indicating the update time of an Asset.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        UPDATE_TIME = TagType.BYTES | 0x45,\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the additional action to be performed during operation.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 12\n         */\n        OPERATION_TYPE = TagType.NUMBER | 0x46,\n        /**\n         * A tag whose value is a bool indicating whether the attributes of an asset are required to be encrypted.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        REQUIRE_ATTR_ENCRYPTED = TagType.BOOL | 0x47,\n        /**\n         * A tag whose value is a byte array indicating the group id an asset belongs to.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 18\n         */\n        GROUP_ID = TagType.BYTES | 0x48,\n        /**\n         * A tag whose value is a 32-bit unsigned integer indicating the type of Asset encapsulation.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 18\n         */\n        WRAP_TYPE = TagType.NUMBER | 0x49\n    }\n    /**\n     * An enum type containing the Asset error codes.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @since 11\n     */\n    /**\n     * An enum type containing the Asset error codes.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Security.Asset\n     * @atomicservice\n     * @since 14\n     */\n    enum ErrorCode {\n        /**\n         * The error code indicates that the caller doesn't have the permission.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        PERMISSION_DENIED = 201,\n        /**\n         * The error code indicates that the caller is not a system application.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 12\n         */\n        NOT_SYSTEM_APPLICATION = 202,\n        /**\n         * The error code indicates that the argument is invalid.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that the argument is invalid.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        INVALID_ARGUMENT = 401,\n        /**\n         * The error code indicates that the ASSET service is unavailable.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that the ASSET service is unavailable.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        SERVICE_UNAVAILABLE = 24000001,\n        /**\n         * The error code indicates that the asset is not found.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that the asset is not found.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        NOT_FOUND = 24000002,\n        /**\n         * The error code indicates that the asset already exists.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that the asset already exists.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DUPLICATED = 24000003,\n        /**\n         * The error code indicates that access to the asset is denied.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that access to the asset is denied.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        ACCESS_DENIED = 24000004,\n        /**\n         * The error code indicates that the screen lock status does not match.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that the screen lock status does not match.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        STATUS_MISMATCH = 24000005,\n        /**\n         * The error code indicates insufficient memory.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates insufficient memory.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        OUT_OF_MEMORY = 24000006,\n        /**\n         * The error code indicates that the asset is corrupted.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that the asset is corrupted.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATA_CORRUPTED = 24000007,\n        /**\n         * The error code indicates that the database operation failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that the database operation failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        DATABASE_ERROR = 24000008,\n        /**\n         * The error code indicates that the cryptography operation failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that the cryptography operation failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        CRYPTO_ERROR = 24000009,\n        /**\n         * The error code indicates that the ipc failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that the ipc failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        IPC_ERROR = 24000010,\n        /**\n         * The error code indicates that calling the Bundle Manager service failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that calling the Bundle Manager service failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        BMS_ERROR = 24000011,\n        /**\n         * The error code indicates that calling the OS Account service failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that calling the OS Account service failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        ACCOUNT_ERROR = 24000012,\n        /**\n         * The error code indicates that calling the Access Token service failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that calling the Access Token service failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        ACCESS_TOKEN_ERROR = 24000013,\n        /**\n         * The error code indicates that the file operation failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that the file operation failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        FILE_OPERATION_ERROR = 24000014,\n        /**\n         * The error code indicates that getting the system time failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that getting the system time failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        GET_SYSTEM_TIME_ERROR = 24000015,\n        /**\n         * The error code indicates that the cache exceeds the limit.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that the cache exceeds the limit.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        LIMIT_EXCEEDED = 24000016,\n        /**\n         * The error code indicates that the capability is not supported.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @since 11\n         */\n        /**\n         * The error code indicates that the capability is not supported.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 14\n         */\n        UNSUPPORTED = 24000017,\n        /**\n         * The error code indicates that verifying the parameter failed.\n         *\n         * @syscap SystemCapability.Security.Asset\n         * @atomicservice\n         * @since 20\n         */\n        PARAM_VERIFICATION_FAILED = 24000018\n    }\n}\nexport default asset;\n",
}
export default FILE;